package classandobject;

/**
 * @author hy
 * @date 2025-03-03
 **/
public class Car {
    String model;
    int year;

    public void drive() {
        System.out.println("汽车正在行驶");
    }

    public static void main(String[] args) {
        Car car = new Car();

        car.model = "参谋";
        car.year = 2025;
        car.drive();
    }
}
